package com.trg.flex.frm
{
	import com.trg.flex.Callback;
	
	import flash.events.Event;

	public class FormEvent extends Event
	{
		public static const COMMIT:String = "onCommit";
		public static const COMMIT_COMPLETE:String = "onCommitComplete";
		public static const COMMIT_FAILED:String = "onCommitFailed";
		public static const COMMIT_ABORTED:String = "onCommitAborted";
		public static const BEAN_CHANGED:String = "onBeanChanged";
		
		public function FormEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		public var formBean:*;
		
		public var formBeans:Object;
		
		public var original:*;
		
		public var originals:Object;
		
		public var data:*;
		
		public var error:Error;
		
		public var callback:Callback;
		
	}
}